package hotel.switchs.oversea.api.VO.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @Author lmf
 * @Date 2020/5/27 14:35
 * 有些字段必须重新设置get/set方法，否则无法携程无法识别
 **/
@Data
public class SaleRuleByOtherVo {
    private String channelType;

    @JsonProperty("isSetSaleTime")
    private boolean isSetSaleTime;
    private String startTime;
    private String endTime;
    private int endDateType;
    @JsonProperty("isSetLimit")
    private boolean isSetLimit;
    private int limitType;
    private int advanceDay;
    private String advanceTime;
    private int advanceType=0;
    @JsonProperty("isSetLast")
    private boolean isSetLast;
    private int minLastDay;
    private int maxLastDay;
    @JsonProperty("isSetBookRoomNum")
    private boolean isSetBookRoomNum;
    private int minBookRoomNum;
    private int maxBookRoomNum;
    @JsonProperty("isSetCancel")
    private boolean isSetCancel;
    private boolean canCancel;
    private int checkInDay;
    private String checkInTime;
    private int deductType;
    private int deductProportion;
    private int checkInDay2;
    private String checkInTime2;
    private int deductType2;
    private int deductProportion2;
    @JsonProperty("isSetAutoChange")
    private boolean isSetAutoChange;
    private boolean autoChange;
    private int formula;
    private int modifyValue;
    private String baseChannel;
    @JsonProperty("isSetLastBookTime")
    private boolean isSetLastBookTime;
    private int lastBookDay;
    private String lastBookTime;
    @JsonProperty("isSetLastConfirmTime")
    private boolean isSetLastConfirmTime;
    private int lastConfirmDay;
    private String lastConfirmTime;

    public boolean isSetSaleTime() {
        return isSetSaleTime;
    }

    public void setSetSaleTime(boolean setSaleTime) {
        isSetSaleTime = setSaleTime;
    }

    public boolean isSetLimit() {
        return isSetLimit;
    }

    public void setSetLimit(boolean setLimit) {
        isSetLimit = setLimit;
    }

    public boolean isSetLast() {
        return isSetLast;
    }

    public void setSetLast(boolean setLast) {
        isSetLast = setLast;
    }

    public boolean isSetBookRoomNum() {
        return isSetBookRoomNum;
    }

    public void setSetBookRoomNum(boolean setBookRoomNum) {
        isSetBookRoomNum = setBookRoomNum;
    }

    public boolean isSetCancel() {
        return isSetCancel;
    }

    public void setSetCancel(boolean setCancel) {
        isSetCancel = setCancel;
    }

    public boolean isSetAutoChange() {
        return isSetAutoChange;
    }

    public void setSetAutoChange(boolean setAutoChange) {
        isSetAutoChange = setAutoChange;
    }

    public boolean isSetLastBookTime() {
        return isSetLastBookTime;
    }

    public void setSetLastBookTime(boolean setLastBookTime) {
        isSetLastBookTime = setLastBookTime;
    }

    public boolean isSetLastConfirmTime() {
        return isSetLastConfirmTime;
    }

    public void setSetLastConfirmTime(boolean setLastConfirmTime) {
        isSetLastConfirmTime = setLastConfirmTime;
    }
}
